package          ghf
import    ru.mipt.board.net._
import   scala.actors._
import actors.Actor._

/**
 * Created by IntelliJ IDEA.
 * User: IL
 * Date: 12.09.2010
 * Time: 11:24:40
 * To change this template use File | Settings | File Templates.
 */

object test   extends Application    {
      val a = new MainActor
        a.start
    val numactors = 50
    val numposts = 6777777
     val workers = new Array[WorkingActor](numactors)
    for (i <- 0 to (numactors - 1) ) {
        workers(i) = new  WorkingActor
        workers(i).start
        workers(i) ! (i*numactors/numactors,a)
    }


    Thread.sleep(50000)
      val c = 4 +5

}


